package edu.xjnu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author David
 * @since 2023-03-18
 */
@Getter
@Setter
@ToString
@TableName("music")
@ApiModel(value = "MusicEntity对象", description = "")
public class MusicEntity extends Model<MusicEntity> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("title")
    private String title;

    @TableField("alias")
    private String alias;

    @TableField("image")
    private String image;

    @TableField("style")
    private String style;

    @TableField("type")
    private String type;

    @TableField("med")
    private String med;

    @TableField("publish_time")
    private LocalDate publishTime;

    @TableField("publisher")
    private String publisher;

    @TableField("numbertiny")
    private Integer numbertiny;

    @TableField("barcodebig")
    private Integer barcodebig;

    @TableField("summary")
    private String summary;

    @TableField("artist")
    private String artist;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
